package com.magic.item.service.impl;

import com.magic.item.mapper.AdminMapper;
import com.magic.item.pojo.Admin;
import com.magic.item.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lan.jianyuan
 * @create 2021-03-08-16:00
 */
@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    private AdminMapper adminMapper;
    @Override
    public Admin adminLogin(Admin admin) {
        return this.adminMapper.selectLogin(admin.getName(), admin.getPassword());
    }
}
